<?php
@session_start();
if(isset($_SESSION["Username"]))
{
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Trang quản trị WebFlower</title>
<link href="../content/Layout.css" rel="stylesheet" type="text/css" media="screen"/>
<script type="text/javascript" src="../scripts/jquery-1.4.2.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var str = location.href.toLowerCase();

            $('ul#mainNav li a').each(function () {
                if (str.indexOf($(this).attr("href").toLowerCase()) > -1)
                 $(this).addClass("active");
            });

            $('ul#sideNav li a').each(function () {
                if (str.indexOf($(this).attr("href").toLowerCase()) > -1)
                $(this).addClass("active");
            });
        });
        
    </script>
</head>

<body>
    <div id="format">
        <div id="wrapper">
        	<!--Phần main menu-->
			<?php
				include("../includes/backend_mainnav.php");
			?>
		
            <div id="containerHolder">
                <div id="container">
                	<!--Phần main content viết tại đây-->
                </div>
                <!-- // #main -->
             </div>
            <!-- // #container -->
            
            <!--Phần footer của trang-->
            <?php
            include("../includes/backend_footer.php");
            ?>
        </div>
        </div>
</body>

</html>
<?php
}
else
{
    header("location:../views/Admin_login.php?logout=TRUE");
}
?>
